﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml.Linq;
using doveData;

namespace WindowsFormsApp1
{
    static class Program
    {
        [DllImport("kernel32.dll")]
        public static extern Boolean AllocConsole();
        [DllImport("kernel32.dll")]
        public static extern Boolean FreeConsole();

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            StatContrl.InitStationM(XDocument.Load("..\\..\\XML\\lineInfo.txt"));
            StatContrl.InitNear(XDocument.Load("..\\..\\XML\\hotelInfo.txt"));
            StatContrl.InitNear(XDocument.Load("..\\..\\XML\\marketInfo.txt"));
            StatContrl.InitNear(XDocument.Load("..\\..\\XML\\foodInfo.txt"));
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());

        }
    }
}
